<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>
<%@ page import="com.dts.entity.Emp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>JSTL</title>
</head>

<body>
<h4>set标签实例：</h4>
使用set标签设置变量
<c:set var="name" value="tom" scope="page" />
<c:set var="age" value="18" scope="session" />
<p>
    name:
    <c:out value="${pageScope.name}" />
</p>
<p>
    age:
    <c:out value="${sessionScope.age}" />
</p>
<hr>
使用remove标签移除age变量
<c:remove var="age" scope="session"/>
<p>
    name:
    <c:out value="${pageScope.name}" />
</p>
<p>
    age:
    <c:out value="${sessionScope.age}" />
</p>
</body>


</html>